export default {
	collapseChange(state) {
		state.collapse = !state.collapse;
	},
	searchChage(state, payload) {
		state.openSearch = payload.openSearch;
	},
	updateUserName(state, payload) {
		return state.userName = payload.userName;
	},
	getVersion(state, payload) {
		console.log(payload)
		return state.version_id = payload.version_id;
	},
	getCurrentRoute(state, payload) {
		return state.current_route = payload.route_name;
	},

	// 手机模式
	mobileCollapseChange (state) {
		state.mobileCollapse = !state.mobileCollapse;
		console.log(state.mobileCollapse)
	}
}
